/*
 * @Author: fhw
 * @Date: 2022-07-17 13:35:20
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-12-24 13:58:11
 * @Description:
 */
import { Module } from '@nestjs/common'
import { ArticleService } from './article.service'
import { ArticleController } from './article.controller'
import { ArticleList } from './entities/article.entity'
import { TypeOrmModule } from '@nestjs/typeorm'
import { JwtModule } from '@nestjs/jwt'
import { jwtConstants, signOptions } from 'src/common/auth/constants'
@Module({
  imports: [
    TypeOrmModule.forFeature([ArticleList]),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions,
    }),
  ],
  controllers: [ArticleController],
  providers: [ArticleService],
  exports: [ArticleService],
})
export class ArticleModule { }
